<html>
    <title>SDK模块依赖及辅助脚本</title>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="text/javascript">
        window.onload = function() {
            var element = document.getElementById('encrypt_mp')
            element.href=encrypt_mp
            element.text="'" + encrypt_mp + "'"
            element.target="_blank"

            element = document.getElementById('resguard_aab')
            element.href=resguard_aab
            element.text="'" + resguard_aab + "'"
            element.target="_blank"

            element = document.getElementById('resguard_apk')
            element.href=resguard_apk
            element.text="'" + resguard_apk + "'"
            element.target="_blank"

            element = document.getElementById('copy_encrypt_mp')
            element.addEventListener("click", function() {
                copyText(copy_encrypt_mp)
            }, false)

            element = document.getElementById('copy_resguard_aab')
            element.addEventListener("click", function() {
                copyText(copy_resguard_aab)
            }, false)

            element = document.getElementById('copy_resguard_apk')
            element.addEventListener("click", function() {
                copyText(copy_resguard_apk)
            }, false)
        }

        function copyText(content) {
            var copyInput = document.createElement("textarea")
            document.body.appendChild(copyInput)
            copyInput.value = content
            copyInput.setAttribute('readonly', 'readonly')
            copyInput.select()
            document.execCommand('copy')
            copyInput.remove()
            alert("文本已复制 :\n" + content)
        }

        function openWindow(url) {
            win = window.open(url,'_blank','width=400,height=300,menubar=no,toolbar=no, status=no,scrollbars=no,location=no')
            win.focus()
            console("win : " + win)
        }

        var encrypt_mp = "https://imgtu.gitee.io/gradle/encrypt-mp.gradle"
        var resguard_aab = "https://imgtu.gitee.io/gradle/resguard_aab.gradle"
        var resguard_apk = "https://imgtu.gitee.io/gradle/resguard_apk.gradle"

        var copy_encrypt_mp = "apply from: '" + encrypt_mp + "'"
        var copy_resguard_aab = "apply from: '" + resguard_aab + "'"
        var copy_resguard_apk = "apply from: '" + resguard_apk + "'"
    </script>
    </head>
    <body>
        <h1>SDK模块依赖及辅助脚本</h1>
        <h3>脚本引用方法：</h3>
        <ul>
            <li>
                加密脚本：&nbsp;&nbsp;&nbsp;&nbsp;<button id='copy_encrypt_mp'>复制内容</button><br>
                apply from : <a id='encrypt_mp'></a>
            </li></br>
            <li>
                AAB混淆：&nbsp;&nbsp;&nbsp;&nbsp;<button id='copy_resguard_aab'>复制内容</button><br>
                apply from : <a id='resguard_aab'></a></br>
                <div><font color='#F00' size='1pt'>>>>注：此引用放置在build.gradle最下方<<<</font></div>
            </li></br>
            <li>
                APK混淆：&nbsp;&nbsp;&nbsp;&nbsp;<button id='copy_resguard_apk'>复制内容</button><br>
                apply from : <a id='resguard_apk'></a></br>
                <div><font color='#F00' size='1pt'>>>>注：此引用放置在build.gradle最下方<<<</font></div>
            </li></br>
        </ul>
        <h3>模块依赖</h3>
        <ul>
            <table>
                <tr>
                    <td><li><b>MPSDK</b></li></td>
                    <td style="padding-left:10">implementation 'com.simple.mpsdk:mpsdk:${version}'</td>
                    <td style="padding-left:10">
                        <a onclick=openWindow("https://nexus.webeyemobi.com/repository/webeye/com/simple/mpsdk/mpsdk/maven-metadata.xml") href="">版本记录</a>
                    </td>
                </tr>
                <tr>
                    <td><li><b>保活</b></li></td>
                    <td style="padding-left:10">implementation 'com.keep.daemon:daemon:${version}'</td>
                    <td style="padding-left:10">
                        <a onclick=openWindow("https://nexus.webeyemobi.com/repository/webeye/com/keep/daemon/daemon/maven-metadata.xml") href="">版本记录</a>
                    </td>
                </tr>
                <tr>
                    <td><li><b>Nath</b></li></td>
                    <td style="padding-left:10">implementation 'com.nath.tax:tax:${version}'</td>
                    <td style="padding-left:10">
                        <a onclick=openWindow("https://nexus.webeyemobi.com/repository/webeye/com/nath/tax/tax/maven-metadata.xml") href="">版本记录</a>
                    </td>
                </tr>
                <tr>
                    <td><li><b>NathAdapter-Max</b></li></td>
                    <td style="padding-left:10">implementation 'com.applovin.mediation:adnath-adapter:${version}'</td>
                    <td style="padding-left:10">
                        <a onclick=openWindow("https://nexus.webeyemobi.com/repository/webeye/com/applovin/mediation/adnath-adapter/maven-metadata.xml") href ="">版本记录</a>
                    </td>
                </tr>
                <tr>
                    <td><li><b>Sharp</b></li></td>
                    <td style="padding-left:10">implementation 'com.sharp.future:sharp:${version}'</td>
                    <td style="padding-left:10">
                        <a onclick=openWindow("https://nexus.webeyemobi.com/repository/webeye/com/sharp/future/sharp/maven-metadata.xml") href="">版本记录</a>
                    </td>
                </tr>
            </table>
        </ul>
        <h3>仓库地址：</h3>
        <ul>
            <li>maven { url "http://nexus.webeyemobi.com/repository/maven-public/" }</li>
            <li>maven { url 'https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea' }</li>
            <li>maven { url 'https://artifact.bytedance.com/repository/Volcengine/' }</li>
            <li>maven { url "https://bitbucket.org/sdkcenter/sdkcenter/raw/release" }</li>
            <li>maven { url "https://sdk.tapjoy.com" }</li>
            <li>maven { url "https://jitpack.io" }</li>
            <li>maven { url "https://s3.amazonaws.com/smaato-sdk-releases/"}</li>
            <li>maven { url 'https://artifacts.applovin.com/android' }</li>
            <li>maven { url "https://artifactory.verizonmedia.com/artifactory/maven" }</li>

        </ul>
    </body>
</html>